package com.cnhis.drgs;


import com.cnhis.drgs.core.util.GeneratorUtil;
import org.junit.jupiter.api.Test;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class GeneratorRemove {

    @Test
    public void generator() {

        Map<String, String> map = new HashMap<>();

        //表名(多个之间逗号隔开)
        map.put("stat", "t_user");

        for (Entry<String, String> entry : map.entrySet()) {

            String projectName = "D:\\mpro\\springboot-learning\\springboot-generator";
            String basePackage = "org.spring.springbootgenerator";
            String moduleName = entry.getKey();
            String tabelName = entry.getValue();
            GeneratorUtil.remove(tabelName, projectName, basePackage, moduleName, new String[]{"model", "dao", "mapper", "service","serviceImpl"});

        }

    }


}
